package com.warmheart.core.pool;

import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;

abstract class WhScfInfo<T> {

    private CompletableFuture<T> future;

    public abstract WhSupplier<T> supplier();

    public abstract Consumer<T> consumer();

    void setFuture(CompletableFuture<T> future) {
        this.future = future;
    }

    CompletableFuture<T> getFuture() {
        return this.future;
    }
}
